package com.cvte.shop.mapper;

import com.cvte.shop.entity.ShopUserAll;
import com.cvte.csb.jdbc.mybatis.mapper.CommonMapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * Mapper接口
 *
 * @author 戴书博
 * @since 2020-07-27
 */
public interface ShopUserAllMapper extends CommonMapper<ShopUserAll> {

    /**
     * 查询用户列表
     * @return
     */
    List<ShopUserAll> selectUserList();

    /**
     * 根据主键查询用户信息
     * @param username
     * @return
     */
    ShopUserAll selectUserByUserName(@Param("username") String username);

    /**
     * 更新用户昵称
     * @param userId
     * @param nickName
     */
    void updateUserNickname(@Param("nickName")String nickName,@Param("userId") String userId);

}